package tw.com.softleader.spring.helper;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import tw.com.softleader.spring.entity.Movie;
import tw.com.softleader.spring.service.MovieService;

@Component
public class MovieHelper {
		
	@Autowired
	@Qualifier(value = "movieService1")
	private MovieService movieService;
	
	public List<Movie> getAll(){
		return movieService.getAll();
	}

	public void setMovieService(MovieService movieService) {
		this.movieService = movieService;
	}

}
